package chap3;

public class testInterface {
	public static void main(String arg[]){
		
		ExtendInterface ei = new ExtendInterface();
		System.out.println(ei.getAge()+":"+ei.getName());
		InterfaceDemo id = (InterfaceDemo) ei;
		System.out.println(id.age+":"+id.name);
		
		ei.setAge(90);
		ei.setName("Sam");
		System.out.println(ei.getAge()+":"+ei.getName());
		
	}
}
